package sk.stuba.fiit.arthur.web.mvc.model.dao;

import java.util.ArrayList;
import java.util.Collection;

import sk.stuba.fiit.arthur.web.mvc.model.entity.PersonEntity;

/**
 * Person DAO interface.
 * 
 * @author Marek Hruska
 */

//@Component("PersonDao")
public class PersonDaoSim implements PersonDao {

	public Collection<PersonEntity> findPersons() {
		Collection<PersonEntity> persons = new ArrayList<PersonEntity>();
		
		PersonEntity person1 = new PersonEntity();
		person1.setId(1);
		person1.setFirstName("Jan");
		person1.setLastName("Hruska");
		person1.setLogin("JH2333");
		
		PersonEntity person2 = new PersonEntity();
		person2.setId(2);
		person2.setFirstName("Ladislav");
		person2.setLastName("Trpky");
		person2.setLogin("JH2333");
		
		persons.add(person1);
		persons.add(person2);
		
		return persons;
	}

	public void save(PersonEntity person) {
		// TODO Auto-generated method stub
		
	}

	public void delete(PersonEntity person) {
		// TODO Auto-generated method stub
		
	}

	public PersonEntity findPersonById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

}
